package org.example.mone.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName hostinfo
 */
@TableName(value ="hostinfo")
public class Hostinfo implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private String hostIp;

    /**
     * 
     */
    private String username;

    /**
     * 
     */
    private String passwd;

    /**
     * 
     */
    private Integer osType;

    /**
     * 
     */
    private String installPath;

    /**
     * 
     */
    private String pingInfo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getHostIp() {
        return hostIp;
    }

    /**
     * 
     */
    public void setHostIp(String hostIp) {
        this.hostIp = hostIp;
    }

    /**
     * 
     */
    public String getUsername() {
        return username;
    }

    /**
     * 
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 
     */
    public String getPasswd() {
        return passwd;
    }

    /**
     * 
     */
    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    /**
     * 
     */
    public Integer getOsType() {
        return osType;
    }

    /**
     * 
     */
    public void setOsType(Integer osType) {
        this.osType = osType;
    }

    /**
     * 
     */
    public String getInstallPath() {
        return installPath;
    }

    /**
     * 
     */
    public void setInstallPath(String installPath) {
        this.installPath = installPath;
    }

    /**
     * 
     */
    public String getPingInfo() {
        return pingInfo;
    }

    /**
     * 
     */
    public void setPingInfo(String pingInfo) {
        this.pingInfo = pingInfo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Hostinfo other = (Hostinfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getHostIp() == null ? other.getHostIp() == null : this.getHostIp().equals(other.getHostIp()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getPasswd() == null ? other.getPasswd() == null : this.getPasswd().equals(other.getPasswd()))
            && (this.getOsType() == null ? other.getOsType() == null : this.getOsType().equals(other.getOsType()))
            && (this.getInstallPath() == null ? other.getInstallPath() == null : this.getInstallPath().equals(other.getInstallPath()))
            && (this.getPingInfo() == null ? other.getPingInfo() == null : this.getPingInfo().equals(other.getPingInfo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getHostIp() == null) ? 0 : getHostIp().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getPasswd() == null) ? 0 : getPasswd().hashCode());
        result = prime * result + ((getOsType() == null) ? 0 : getOsType().hashCode());
        result = prime * result + ((getInstallPath() == null) ? 0 : getInstallPath().hashCode());
        result = prime * result + ((getPingInfo() == null) ? 0 : getPingInfo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", hostIp=").append(hostIp);
        sb.append(", username=").append(username);
        sb.append(", passwd=").append(passwd);
        sb.append(", osType=").append(osType);
        sb.append(", installPath=").append(installPath);
        sb.append(", pingInfo=").append(pingInfo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}